﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HQWeb.View
{
    /// <summary>
    /// GetThemeProject 获得主题婚礼的项目
    /// </summary>
    public class GetThemeProject : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
           // context.Response.Write("Hello World");
            string strThemeID = context.Request["id"];
            BLL.Order.T_PUB_Order_Project bll = new BLL.Order.T_PUB_Order_Project();
            List<Model.Order.T_PUB_Order_Projectcs> ilst = bll.GetOrderProject(strThemeID);
            string strIDs="";
            string strTemp;
            foreach (Model.Order.T_PUB_Order_Projectcs item in ilst)
            {
                strTemp = item.ProjectID + "|" + item.Number;
                strIDs = strIDs + strTemp + ",";
            }
            context.Response.Write(strIDs);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}